package com.hospitalsystem.controller;

import com.hospitalsystem.entity.PatientRecord;
import com.hospitalsystem.service.PatientRecordService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (PatientRecord)表控制层
 *
 * @author makejava
 * @since 2024-12-28 19:33:12
 */
@RestController
@RequestMapping("patientRecord")
public class PatientRecordController {
    /**
     * 服务对象
     */
    @Resource
    private PatientRecordService patientRecordService;


    @GetMapping("addPatientRecordAndMedicalRecord")
    public ResponseEntity<PatientRecord> addPatientRecordAndMedicalRecord(@RequestParam String time,@RequestParam String idCode,@RequestParam String did,@RequestParam String description,@RequestParam String drugs,@RequestParam String checks,@RequestParam String arrangeid){
        return ResponseEntity.ok(this.patientRecordService.addPatientRecordAndMedicalRecord(time,idCode,did,description,drugs,checks,arrangeid));
    }
}

